package com.aishua.fire.entity.account;


import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(value="修改账户信息对象",description="修改账户信息对象")
@Data
public class UpdateAccountInfo {

	@ApiModelProperty(value="账户id",name="loginId",example="000")
	private String loginId;
	@ApiModelProperty(value="别名",name="aliasName",example="小张")
	@NotBlank(message="联系人不能为空")
	private String aliasName;
	@ApiModelProperty(value="联系电话",name="phone",example="13857441952")
	@NotBlank(message="联系电话不能为空")
	@Pattern(regexp="^(13\\d{9}$)|(^14)[5,7]\\d{8}$|(^15[0,1,2,3,5,6,7,8,9]\\d{8}$)|(^17)[0,6,7,8]\\d{8}$|(^18\\d{9})$",message="不符合手机号规则")
	private String phone;
	@ApiModelProperty(value="用户名",name="userName",example="张三丰")
	@NotBlank(message="用户名不能为空")
	private String userName;
	@ApiModelProperty(value="用户密码",name="userPassword",example="123456")
	private String userPassword;
	@ApiModelProperty(value="账户状态",name="accountStatus",example="1")
	private String accountStatus;
	@ApiModelProperty(value="软删除",name="status",example="0")
	private String status;
	@ApiModelProperty(value="邮箱地址",name="emailAddr",example="123@qq.com")
	@NotBlank(message="邮箱不能为空")
	//@Pattern(regexp="^[A-Za-z0-9][\\\\w\\\\-\\\\.]{3,12}@([\\\\w\\\\-]+\\\\.)+[\\\\w]{2,3}$",message="不符合邮箱规则")
	private String emailAddr;
	@ApiModelProperty(value="创建时间",name="createDate",example="2018-04-20 15:33:21")
	private String createDate;
	@ApiModelProperty(value="最后登录时间",name="lastLoginDate",example="2018-04-12 17:12:25")
	private String lastLoginDate;
}
